
/*
    使用双重循环实现五子棋游戏棋盘的绘制
 */
public class CheckerBoard{

    public static void main(String[] args) {
//声明16进制数为打印棋盘做准备
        int a = 0x00;
        int b = 0x00;
        System.out.print("  ");
        //首先打印一行
        for(a = 0; a <= 0xf; a++){
            System.out.print(Integer.toHexString(a) + " ");
        }
        System.out.println("");
        //外层循环控制行数，内层循环控制打印每层数量
        for(b = 0; b <= 0xf; b++){
            System.out.print(Integer.toHexString(b)+ " ");
            for (int n = 0; n <= 15; n++){
                System.out.print("+ ");
            }
            System.out.println("");
        }
    }
}
